<?php
	
	$a =$_GET['u'];
	// var_dump($a);
	// $l =$_GET['l'];
	// var_dump($l);
	$link = mysqli_connect('localhost','root','root');

	mysqli_set_charset($link,'utf8');

	mysqli_select_db($link,'educ');

	$sql = "select * from et_link where linkname='{$a}'";

	$res =mysqli_query($link,$sql);
	// var_dump($res);
	if($res && $row=mysqli_fetch_assoc($res)){
		echo 0;
	}else{
		echo 1;
	}



?>